package com.firexxx.study.designmodel.sixconcept.requirement.changepointexpand;

/**
 * @description: 变化点扩展类需求：这次改成满100 - 18吧
 * @author: zhuangzhang2
 * @date: 2021-01-04 13:54
 */
public class Main {

    public static void main(String[] args) {
        int price = 100;
        //IPreferential preferential = new DiscountService();
        //修改点
        IPreferential preferential = new ReduceService();
        int discountedPrice = preferential.preferential(price);
        System.out.println("原始价格" + price + ",优惠后价格" + discountedPrice);
    }

}
